package com.centaline.androidsalesblog.model.businissobject;

import android.os.Parcel;
import android.os.Parcelable;

import com.centaline.androidsalesblog.model.databaseobject.NewRegionDo;
import com.google.gson.annotations.SerializedName;

/**
 * 新房板块
 * Created by guilin on 16/2/4.
 */
public class NewGscopBo implements Parcelable {

    private int DistrictId;
    private int NewPropCount;
    @SerializedName("District")
    private NewRegionDo newRegionDo;

    public int getDistrictId() {
        return DistrictId;
    }

    public void setDistrictId(int districtId) {
        DistrictId = districtId;
    }

    public int getNewPropCount() {
        return NewPropCount;
    }

    public void setNewPropCount(int newPropCount) {
        NewPropCount = newPropCount;
    }

    public NewRegionDo getNewRegionDo() {
        return newRegionDo;
    }

    public void setNewRegionDo(NewRegionDo newRegionDo) {
        this.newRegionDo = newRegionDo;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.DistrictId);
        dest.writeInt(this.NewPropCount);
        dest.writeParcelable(this.newRegionDo, 0);
    }

    public NewGscopBo() {
    }

    protected NewGscopBo(Parcel in) {
        this.DistrictId = in.readInt();
        this.NewPropCount = in.readInt();
        this.newRegionDo = in.readParcelable(NewRegionDo.class.getClassLoader());
    }

    public static final Parcelable.Creator<NewGscopBo> CREATOR = new Parcelable.Creator<NewGscopBo>() {
        public NewGscopBo createFromParcel(Parcel source) {
            return new NewGscopBo(source);
        }

        public NewGscopBo[] newArray(int size) {
            return new NewGscopBo[size];
        }
    };
}
